#ifndef _ATOI_INC
#define _ATOI_INC

#include <cstdlib>

template <typename Type>
inline Type Atoi( const std::string& str )
{
	return static_cast<Type>(std::atoi(str.c_str()));
}

template <>
inline UInt64 Atoi( const std::string& str )
{
#if defined (_WIN32)
	//TODO : update the newest complier
	std::istringstream iss(str);
	UInt64 num = 0;
	iss >> num;
	return num;
#else
	return static_cast<UInt64>(std::atoll(str.c_str()));
#endif
}

#endif